package 预习的;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.util.Scanner;

public class 敏感词替换 {
    public static void main(String[] args) {
        while (true) {
            Scanner sc = new Scanner(System.in);
            System.out.println("请输入一段字符串：");
            String next = sc.nextLine();
            String repla = next.replace("TMD", "***");
            System.out.println("替换后的字符串是：" + repla);
        }

    }
}
